#include "junix.h"
using namespace std;

int main(int argc, char **argv)
{
	vector<int> vi(1000);
	generate(vi.begin(),vi.end(),
			boost::bind( modulus<int>(), boost::bind(rand), 1000));
	stable_sort(vi.begin(), vi.end());
	copy(vi.begin(),vi.end(),
			ostream_iterator<int>(cout," "));
	cout<<endl;
}
